package com.inifitness.message.models;

import java.io.Serial;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * WebSocket聊天消息体
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChatMessage implements Serializable {

  @Serial
  private static final long serialVersionUID = -1936261624687713871L;
  /**
   * 发送者
   */
  private String sender;

  /**
   * 消息内容
   */
  private String content;
}
